<!----------------双排------------------->
<?php
if(!empty($output['goods_list']) && is_array($output['goods_list'])){
?>
<div class="layout padding-small-top paaing-small-bottom">
    <div class="container">
        <div class="line-small">
            <?php foreach($output['goods_list'] as $k=>$item){?>
            <div class="x6 margin-small-top ">
                <a url="index.php?act=goods&goods_id=<?php echo $item['goods_id'];?>" onClick="pclicked(this);">
                    <ul class="list-unstyle padding-small radius-big bg-white clearfix ">
                        <li><img class="img-responsive self-motion" src="<?php echo SiteUrl.DS.ATTACH_GOODS.DS.$item['store_id'].DS.$item['goods_image'];?>" onerror="this.src='<?php echo TEMPLATES_PATH;?>/images/touch2013/no_100_100.jpg'" onload="imgheqw(this)"></li>

                        <li class="ycyc"><?php echo $item['goods_name']?></li>
                        <li class="zt_color height"><strong> <?php if($_SESSION['is_login'] != 1){?>
                                    登录后显示
                                <?php }else{?>
                                    &yen;
                                    <?php
                                    if($item['group_flag']==0 && $item['xianshi_flag']==0){
                                        echo $item['goods_store_price'];
                                    }else if($item['group_flag']==1 && $item['xianshi_flag']==0){
                                        echo $item['group_price'];
                                    }else if($item['group_flag']==0 && $item['xianshi_flag']==1){
                                        echo ncPriceFormat($item['goods_store_price']*($item['xianshi_discount']/10));
                                    }else if($item['group_flag']==1 && $item['xianshi_flag']==1){
                                        if($item['group_price'] < ($item['goods_store_price']*($item['xianshi_discount']/10))){
                                            echo $item['group_price'];
                                        }else{
                                            echo ncPriceFormat($item['goods_store_price']*($item['xianshi_discount']/10));
                                        }

                                    }
                                    ?>
                                <?php }?></strong></li>
                    </ul>
                </a>
            </div>
            <?php }?>
        </div>
    </div>
</div>
<?php }else{?>
    <ul> <li class="noTxt-b">
            <div class="text-center text-gray padding-large">
                <i class="icon-meh-o"></i>
                <p>暂无相关的数据记录。</p>
            </div>
        </li></ul>
<?php }?>
<script>
    //商品名称过长时的处理
    deal_words($('.ycyc'),0);
    </script>